package Date;

import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;

/**
 * @Author wangzhipeng
 * @Date 2020-08-11 3:33 下午
 * @Description
 */
public class ZoneDateTimeDemo {
    public static void main(String[] args) {
        //时区的获取
        ZoneId zone  = ZoneId.of("Africa/Cairo");
        ZonedDateTime zonedDateTime = ZonedDateTime.now(zone);
        System.out.println(zonedDateTime);

    }
}
